package com.lesales.service.interfaces;

import java.io.Serializable;
import java.security.NoSuchAlgorithmException;
import java.util.List;

import com.lesales.common.exception.EntityOperateException;
import com.lesales.common.exception.ValidatException;
import com.lesales.model.User;

public interface IAccountService extends IBaseService<User, Serializable> {
	/**
	 * 校验账号信息
	 * 
	 * @param user
	 * @return
	 */
	List<User> checkName(User user);

	/**
	 * 校验密码
	 * 
	 * @param user
	 * @return
	 */
	List<User> checkPassword(User user);

	void saveRegister(User user) throws EntityOperateException, ValidatException, NoSuchAlgorithmException;
}
